package com.ruoyi.faceplus.domain;

import com.arcsoft.face.FaceFeature;
import com.arcsoft.face.FaceInfo;
import com.arcsoft.face.ImageQuality;
import com.arcsoft.face.MaskInfo;
import com.arcsoft.face.toolkit.ImageInfo;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Builder
public class ImageFeature extends BaseEntity{

    private ImageInfo imageInfo;

    private FaceInfo faceInfo;

    private MaskInfo maskInfo;

    private ImageQuality imageQuality;

    private FaceFeature faceFeature;

    private String faceId;

    private Float similar;

    public void setImageInfo(ImageInfo imageInfo){ this.imageInfo = imageInfo; }
    public ImageInfo getImageInfo(){ return imageInfo; }

    public void setFaceInfo(FaceInfo faceInfo){ this.faceInfo = faceInfo; }
    public FaceInfo getFaceInfo(){ return faceInfo; }

    public void setMaskInfo(MaskInfo maskInfo){ this.maskInfo = maskInfo; }
    public MaskInfo getMaskInfo(){ return maskInfo; }

    public void setImageQuality(ImageQuality imageQuality){ this.imageQuality = imageQuality; }
    public ImageQuality getImageQuality(){ return imageQuality; }

    public void setFaceFeature(FaceFeature faceFeature){ this.faceFeature = faceFeature; }
    public FaceFeature getFaceFeature(){ return faceFeature; }

    public void setFaceId(String faceId){ this.faceId = faceId; }
    public String getFaceId(){ return faceId; }

    public void setSimilar(Float similar){ this.similar = similar; }
    public Float getSimilar(){ return similar; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("imageInfo", getImageInfo())
                .append("faceInfo", getFaceInfo())
                .append("maskInfo", getMaskInfo())
                .append("imageQuality", getImageQuality())
                .append("faceFeature", getFaceFeature())
                .append("faceId", getFaceId())
                .append("similar", getSimilar())
                .toString();
    }
}
